﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<nav>
    <ul id="menu">
        <li><a href="/" title="Página Inicial">Página Inicial</a></li>
        <li><a href="/usuario" title="Cadastros">Cadastros</a></li>
        <li><a href="/projeto" title="Projetos">Projetos</a></li>
        <li><a href="/sprint" title="Sprint">Sprint</a></li>      
        <li><a href="/grupotrabalho" title="Grupo de trabalho">Grupo de trabalho</a></li>
    </ul>
</nav>
<div id="search"> 

      <form id="frmChangeProject" name="frmChangeProject" action="/projeto/changeProjectCurrent" method="post">
        <span><%= Html.DropDownList("idProjeto", SiteAgle.ViewHelper.DropDowns.ProjetosHomeVO(), new { @class = "required range", @onchange = "selectedProject()" })%></span>
   </form>
                   
</div>
<div id="logo">
  
    <a href="/">
        <img src="/imagens/logo.png" alt="" title="Gestor Scrum Agile" /></a>
</div>
<div id="dados-secao">
  
  <%if (SiteAgle.ViewHelper.UserHelper.user != null)
    {%>
    <span>Olá, <strong><%:SiteAgle.ViewHelper.UserHelper.user.Nome%></strong></span><a href="/Usuario/Logoff" title="Sair do Sistema">Sair</a><a href="Sobre" title="Sobre">Sobre</a>
    <%} %>
</div>
<script type="text/javascript">
    function selectedProject() {
        $("#frmChangeProject").submit();
      
     }
</script>